<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="./../template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
	
	<ui:define name="tituloJanela">
		<title>Cadastrar Novo Ramal</title>
	</ui:define>

	<ui:define name="tituloCima">
		<h1>Cadastrar Novo Ramal</h1>
	</ui:define>
	
	<ui:define name="conteudo">
		<h:form id="tabelaForm">
			<p:messages></p:messages>
			<p:panel header="Cadastrar Ramal">
			<h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">
			
				<h:outputLabel value="Ramal: "/>
				<p:inputText value="#{ramalMB.ramal.numero}" required="true" size="35"
					requiredMessage="Entre com o número do ramal ou telefone.">
				</p:inputText>
			</h:panelGrid>
		    </p:panel>	        	
			<br/>
			<p:commandButton action="#{ramalMB.adicionaRamal}" value="Salvar" update=":tabelaForm" ajax="false"/>
		</h:form>
	</ui:define>
</ui:composition>